import {Map} from 'immutable';

import * as actionTypes from './constant';

const defaultState = Map({
    studentInfo:[]
})

function reducer(state = defaultState, action){
    switch(action.type) {
        case actionTypes.CHANGE_STUDENT_INFO:
            return state.set('studentInfo',action.studentInfo);
        case actionTypes.UPLOAD_STUDENT_INFO:
            return state;
        default: 
            return state;
    }
}

export default reducer;